﻿using SCM.Common;
using SCM.Model;
using SCM.Model.DBEntity;
using System;
using System.Collections.Generic;
using System.Text;

namespace SCM.Servie.IBusiness
{
    /// <summary>
    /// 角色权限接口
    /// </summary>
    public interface IRoleFunctionService
    {
        bool Add(List<T_Role_Function> functions);

        bool Delete(List<string> ids);

        bool Delete(string companyId, string roleId);

        bool Update(T_Role_Function model);

        bool Update(string roleId,string companyId,List<string> functionIds);

        List<RoleFunctionVo> GetListByRoleId(string companyId, string roleId);

        T_Role_Function GetById(string id);

        List<T_Role_Function> GetList(string companyId, string roleId);

        PageData<T_Role_Function> Query(string companyId, string roleId, PageInfo page);
    }
}
